/*     */ package com.lmpop.trade.ti_case;
/*     */ 
/*     */ import com.lmpop.frame.QueryList;
/*     */ import com.lmpop.frame.SysMap;
/*     */ import com.lmpop.frame.TradeInterf;
/*     */ import com.lmpop.frame.dao.DbmInterf;
/*     */ import com.lmpop.frame.dao.IbatisDbmImpl;
/*     */ import com.lmpop.frame.exp.ApplicationException;
/*     */ import com.lmpop.frame.util.PinyinComparator;
/*     */ import com.lmpop.trade.ti_membercurrency.Ti_membercurrencyInfo;
/*     */ import java.util.ArrayList;
/*     */ import java.util.Collections;
/*     */ import java.util.HashSet;
/*     */ import java.util.Hashtable;
/*     */ import java.util.Iterator;
/*     */ import java.util.List;
/*     */ import java.util.Map;
/*     */ 
/*     */ public class Ti_caseInfo
/*     */   implements TradeInterf
/*     */ {
/*     */   QueryList queryList;
/* 317 */   public static Map areaMap = new Hashtable();
/* 318 */   public static Map catMap1 = new Hashtable();
/* 319 */   public static Map catMap2 = new Hashtable();
/*     */ 
/*     */   public Ti_caseInfo()
/*     */   {
/*  27 */     this.queryList = new QueryList();
/*     */   }
/*     */ 
/*     */   public SysMap insert(DbmInterf dbmMgr, SysMap map) {
/*  31 */     Ti_case ti_case = new Ti_case();
/*  32 */     Ti_membercurrencyInfo ti_membercurrencyInfo = new Ti_membercurrencyInfo();
/*  33 */     ti_case.setCase_id(map.getString("case_id"));
/*  34 */     ti_case.setCase_title(map.getString("case_title"));
/*  35 */     ti_case.setArea_attr(map.getString("area_attr"));
/*     */ 
/*  38 */     ti_case.setCase_state(map.getString("case_state"));
/*  39 */     ti_case.setCase_type(map.getString("case_type"));
/*  40 */     ti_case.setEnd_time(map.getString("end_time"));
/*  41 */     ti_case.setCat_attr(map.getString("cat_attr"));
/*  42 */     ti_case.setCase_desc(map.getString("case_desc"));
/*  43 */     ti_case.setCase_content(map.getString("case_content"));
/*  44 */     ti_case.setOperator_id(map.getString("operator_id"));
/*     */ 
/*  46 */     if ((map.getString("case_amount") == null) || ("".equals(map.getString("case_amount"))))
/*  47 */       ti_case.setCase_amount("0");
/*     */     else
/*  49 */       ti_case.setCase_amount(map.getString("case_amount"));
/*  50 */     if ((map.getString("delegate_fee") == null) || ("".equals(map.getString("delegate_fee"))))
/*  51 */       ti_case.setDelegate_fee("0");
/*     */     else
/*  53 */       ti_case.setDelegate_fee(map.getString("delegate_fee"));
/*  54 */     ti_case.setDelegate_tel(map.getString("delegate_tel"));
/*  55 */     ti_case.setDelegate_name(map.getString("delegate_name"));
/*  56 */     ti_case.setContact_sum(map.getString("contact_sum"));
/*  57 */     ti_case.setMemberscurrency_id(map.getString("memberscurrency_id"));
/*  58 */     ti_case.setCase_source(map.getString("case_source"));
/*  59 */     String result_code = "0";
/*     */     try {
/*  61 */       insert(dbmMgr, ti_case);
/*     */     } catch (ApplicationException e) {
/*  63 */       e.printStackTrace();
/*  64 */       result_code = "1";
/*     */     }
/*  66 */     map.setString("result_code", result_code);
/*  67 */     return map;
/*     */   }
/*     */ 
/*     */   public void insert(DbmInterf dbmMgr, Ti_case ti_case) throws ApplicationException
/*     */   {
/*  72 */     dbmMgr.update("insertTi_case", ti_case);
/*     */   }
/*     */ 
/*     */   public SysMap update(DbmInterf dbmMgr, SysMap map) {
/*  76 */     Ti_case ti_case = new Ti_case();
/*  77 */     Ti_membercurrencyInfo ti_membercurrencyInfo = new Ti_membercurrencyInfo();
/*  78 */     ti_case.setCase_id(map.getString("case_id"));
/*  79 */     ti_case.setCase_title(map.getString("case_title"));
/*  80 */     ti_case.setArea_attr(map.getString("area_attr"));
/*     */ 
/*  82 */     if ((map.getString("case_state") == null) || (map.getString("case_state").equals("")))
/*     */     {
/*  84 */       ti_case.setCase_state("1");
/*     */     }
/*  86 */     else ti_case.setCase_state(map.getString("case_state"));
/*     */ 
/*  88 */     ti_case.setCase_type(map.getString("case_type"));
/*  89 */     ti_case.setEnd_time(map.getString("end_time"));
/*  90 */     ti_case.setCat_attr(map.getString("cat_attr"));
/*  91 */     ti_case.setCase_desc(map.getString("case_desc"));
/*  92 */     ti_case.setCase_content(map.getString("case_content"));
/*  93 */     ti_case.setOperator_id(map.getString("operator_id"));
/*     */ 
/*  95 */     ti_case.setDelegate_tel(map.getString("delegate_tel"));
/*  96 */     ti_case.setDelegate_name(map.getString("delegate_name"));
/*  97 */     ti_case.setContact_sum(map.getString("contact_sum"));
/*  98 */     ti_case.setMemberscurrency_id(map.getString("memberscurrency_id"));
/*  99 */     ti_case.setCase_source(map.getString("case_source"));
/* 100 */     if ((map.getString("case_amount") == null) || ("".equals(map.getString("case_amount"))))
/* 101 */       ti_case.setCase_amount("0");
/*     */     else
/* 103 */       ti_case.setCase_amount(map.getString("case_amount"));
/* 104 */     if ((map.getString("delegate_fee") == null) || ("".equals(map.getString("delegate_fee"))))
/* 105 */       ti_case.setDelegate_fee("0");
/*     */     else
/* 107 */       ti_case.setDelegate_fee(map.getString("delegate_fee"));
/* 108 */     String result_code = "0";
/*     */     try {
/* 110 */       update(dbmMgr, ti_case);
/*     */     } catch (ApplicationException e) {
/* 112 */       e.printStackTrace();
/* 113 */       result_code = "1";
/*     */     }
/* 115 */     map.setString("result_code", result_code);
/* 116 */     return map;
/*     */   }
/*     */ 
/*     */   public void update(DbmInterf dbmMgr, Ti_case ti_case) throws ApplicationException
/*     */   {
/* 121 */     dbmMgr.update("updateTi_case", ti_case);
/*     */   }
/*     */ 
/*     */   public SysMap delete(DbmInterf dbmMgr, SysMap map) {
/* 125 */     String pkid_string = map.getString("pkid");
/* 126 */     String result_code = "0";
/*     */     try {
/* 128 */       if (!pkid_string.equals("")) {
/* 129 */         String[] pkStr = pkid_string.split("\\|");
/* 130 */         for (int i = 0; i < pkStr.length; i++)
/* 131 */           if (!pkStr[i].equals(""))
/* 132 */             delete(dbmMgr, pkStr[i]);
/*     */       }
/*     */     }
/*     */     catch (ApplicationException e) {
/* 136 */       e.printStackTrace();
/* 137 */       result_code = "1";
/*     */     }
/* 139 */     map.setString("result_code", result_code);
/* 140 */     return map;
/*     */   }
/*     */ 
/*     */   public void delete(DbmInterf dbmMgr, String pkid) throws ApplicationException
/*     */   {
/* 145 */     dbmMgr.update("deleteTi_case", pkid);
/*     */   }
/*     */ 
/*     */   public int getCountByObj(Object obj) {
/* 149 */     Map params = (Hashtable)obj;
/* 150 */     List list = this.queryList.getList("getTi_caseSum", params);
/* 151 */     int count = 0;
/* 152 */     if ((list != null) && (list.size() > 0)) {
/* 153 */       Hashtable newsMap = (Hashtable)list.get(0);
/* 154 */       if ((newsMap.get("count") != null) && (!newsMap.get("count").toString().equals("")))
/*     */       {
/* 156 */         count = Integer.parseInt(newsMap.get("count").toString());
/*     */       }
/*     */     }
/* 159 */     return count;
/*     */   }
/*     */   public int getTi_caseSumByUnShare(Object obj) {
/* 162 */     Map params = (Hashtable)obj;
/* 163 */     List list = this.queryList.getList("getTi_caseSumByUnShare", params);
/* 164 */     int count = 0;
/* 165 */     if ((list != null) && (list.size() > 0)) {
/* 166 */       Hashtable newsMap = (Hashtable)list.get(0);
/* 167 */       if ((newsMap.get("count") != null) && (!newsMap.get("count").toString().equals("")))
/*     */       {
/* 169 */         count = Integer.parseInt(newsMap.get("count").toString());
/*     */       }
/*     */     }
/* 172 */     return count;
/*     */   }
/*     */ 
/*     */   public SysMap alterCase_state(DbmInterf dbmMgr, SysMap map) {
/* 176 */     Ti_case ti_case = new Ti_case();
/* 177 */     String result_code = "0";
/*     */     try
/*     */     {
/* 180 */       ti_case.setCase_id(map.getString("case_id"));
/* 181 */       ti_case.setCase_state(map.getString("case_state"));
/* 182 */       updateCase_states(dbmMgr, ti_case);
/*     */     } catch (ApplicationException e) {
/* 184 */       e.printStackTrace();
/* 185 */       result_code = "1";
/*     */     }
/* 187 */     map.setString("result_code", result_code);
/* 188 */     return map;
/*     */   }
/*     */ 
/*     */   public SysMap updateCase_states(DbmInterf dbmMgr, SysMap map) {
/* 192 */     Ti_case ti_case = new Ti_case();
/* 193 */     String pkid_string = map.getString("pkid");
/* 194 */     String case_state = map.getString("case_state");
/* 195 */     String result_code = "0";
/*     */     try {
/* 197 */       if (!pkid_string.equals("")) {
/* 198 */         String[] pkStr = pkid_string.split("\\|");
/* 199 */         for (int i = 0; i < pkStr.length; i++) {
/* 200 */           if (!pkStr[i].equals(""))
/* 201 */             ti_case.setCase_id(pkStr[i]);
/* 202 */           ti_case.setCase_state(case_state);
/* 203 */           updateCase_states(dbmMgr, ti_case);
/*     */         }
/*     */       }
/*     */     } catch (ApplicationException e) {
/* 207 */       e.printStackTrace();
/* 208 */       result_code = "1";
/*     */     }
/* 210 */     map.setString("result_code", result_code);
/* 211 */     return map;
/*     */   }
/*     */ 
/*     */   public void updatecase_type(DbmInterf dbmMgr, Ti_case ti_case) throws ApplicationException {
/* 215 */     dbmMgr.update("updatecase_type", ti_case);
/*     */   }
/*     */ 
/*     */   public SysMap updatecase_state(DbmInterf dbmMgr, SysMap map) {
/* 219 */     Ti_case ti_case = new Ti_case();
/* 220 */     ti_case.setCase_id(map.getString("case_id"));
/* 221 */     String result_code = "0";
/*     */     try {
/* 223 */       updatecase_state(dbmMgr, ti_case);
/*     */     } catch (ApplicationException e) {
/* 225 */       e.printStackTrace();
/* 226 */       result_code = "1";
/*     */     }
/* 228 */     map.setString("result_code", result_code);
/* 229 */     return map;
/*     */   }
/*     */ 
/*     */   public void updateCase_states(DbmInterf dbmMgr, Ti_case ti_case) throws ApplicationException
/*     */   {
/* 234 */     dbmMgr.update("updateCase_states", ti_case);
/*     */   }
/*     */ 
/*     */   public void updatecase_state(DbmInterf dbmMgr, Ti_case ti_case) throws ApplicationException {
/* 238 */     dbmMgr.update("updatecase_state", ti_case);
/*     */   }
/*     */ 
/*     */   public void alterStateById(Ti_case ti_case) {
/* 242 */     DbmInterf dbmMgr = new IbatisDbmImpl();
/*     */     try {
/* 244 */       dbmMgr.update("updateCase_states", ti_case);
/*     */     } catch (ApplicationException e) {
/* 246 */       e.printStackTrace();
/*     */     }
/*     */   }
/*     */ 
/*     */   public List getListByPage(Object obj, int start, int limit) {
/* 250 */     Map params = (Hashtable)obj;
/*     */ 
/* 252 */     if (start == 0)
/* 253 */       start = 0;
/*     */     else {
/* 255 */       start = (start - 1) * limit;
/*     */     }
/* 257 */     params.put("user_class", "");
/* 258 */     params.put("start", Integer.valueOf(start));
/* 259 */     params.put("limit", Integer.valueOf(limit));
/* 260 */     return this.queryList.getList("getListByTi_casePage", params);
/*     */   }
/*     */   public List getListByPageUnShare(Object obj, int start, int limit) {
/* 263 */     Map params = (Hashtable)obj;
/*     */ 
/* 265 */     if (start == 0)
/* 266 */       start = 0;
/*     */     else {
/* 268 */       start = (start - 1) * limit;
/*     */     }
/* 270 */     params.put("start", Integer.valueOf(start));
/* 271 */     params.put("limit", Integer.valueOf(limit));
/* 272 */     return this.queryList.getList("getListByPageUnShare", params);
/*     */   }
/*     */ 
/*     */   public List getListByPk(String id) {
/* 276 */     return this.queryList.getList("getTi_caseByPk", id);
/*     */   }
/*     */ 
/*     */   public List getlistByCase_type(Map map, int start, int limit) {
/* 280 */     Map params = new Hashtable();
/* 281 */     if (start == 0)
/* 282 */       start = 0;
/*     */     else {
/* 284 */       start = (start - 1) * limit;
/*     */     }
/* 286 */     String cust_class = map.get("cust_class").toString();
/*     */ 
/* 288 */     if (cust_class.equals("8"))
/* 289 */       params.put("memberscurrency_id", "D6441x8hMScE033");
/* 290 */     if (cust_class.equals("9")) {
/* 291 */       params.put("memberscurrency_id", "D6441x8hMScE033Q8743jG6c427847");
/*     */     }
/* 293 */     params.put("case_type", map.get("case_type").toString());
/* 294 */     if (map.get("case_state") != null)
/* 295 */       params.put("case_state", map.get("case_state").toString());
/* 296 */     params.put("start", Integer.valueOf(start));
/* 297 */     params.put("limit", Integer.valueOf(limit));
/* 298 */     return this.queryList.getList("getlistByCase_type", params);
/*     */   }
/*     */ 
/*     */   public int getlistByCase_typecount(Map map) {
/* 302 */     String cust_class = map.get("cust_class").toString();
/* 303 */     Map params = new Hashtable();
/* 304 */     if (cust_class.equals("8"))
/* 305 */       params.put("memberscurrency_id", "D6441x8hMScE033");
/* 306 */     if (cust_class.equals("9"))
/* 307 */       params.put("memberscurrency_id", "D6441x8hMScE033Q8743jG6c427847");
/* 308 */     params.put("case_type", map.get("case_type").toString());
/* 309 */     if (map.get("case_state") != null)
/* 310 */       params.put("case_state", map.get("case_state").toString());
/* 311 */     List list = this.queryList.getList("getlistByCase_typecount", params);
/* 312 */     Hashtable newsMap = (Hashtable)list.get(0);
/* 313 */     int counter = Integer.parseInt(newsMap.get("count").toString());
/* 314 */     return counter;
/*     */   }
/*     */ 
/*     */   public List getAreaAttrList()
/*     */   {
/* 323 */     List list = this.queryList.getList("getAreaAttrList");
/* 324 */     List areaList = new ArrayList();
/* 325 */     if ((list != null) && (list.size() > 0)) {
/* 326 */       HashSet set = new HashSet();
/* 327 */       String[] temp = null;
/* 328 */       int j = 0;
/* 329 */       Map tempmap = null;
/* 330 */       for (int i = 0; i < list.size(); i++) {
/* 331 */         tempmap = (Hashtable)list.get(i);
/* 332 */         temp = tempmap.get("area_attr").toString().split("[|]");
/* 333 */         set.add(temp[0]);
/*     */       }
/*     */ 
/* 337 */       for (Iterator it = set.iterator(); it.hasNext(); )
/*     */       {
/* 339 */         tempmap = (Hashtable)this.queryList.getList("getTs_areaByPk", it.next().toString()).get(0);
/* 340 */         areaList.add(tempmap.get("area_name").toString());
/* 341 */         areaMap.put(tempmap.get("area_name").toString(), tempmap.get("area_id").toString());
/*     */       }
/*     */ 
/* 344 */       Collections.sort(areaList, new PinyinComparator());
/*     */     }
/*     */ 
/* 347 */     return areaList;
/*     */   }
/*     */ 
/*     */   public static Map getAreaMap() {
/* 351 */     return areaMap;
/*     */   }
/*     */ 
/*     */   public List getCatAttrList() {
/* 355 */     List list = this.queryList.getList("getOneLevelCatId");
/* 356 */     Map map1 = new Hashtable();
/* 357 */     Map map2 = new Hashtable();
/* 358 */     if ((list != null) && (list.size() > 0)) {
/* 359 */       for (int i = 0; i < list.size(); i++) {
/* 360 */         map1.put(((Hashtable)list.get(i)).get("cat_name"), ((Hashtable)list.get(i)).get("cat_id"));
/* 361 */         map2.put(((Hashtable)list.get(i)).get("cat_name"), this.queryList.getList("getTwoLevelCatId", ((Hashtable)list.get(i)).get("cat_id")));
/*     */       }
/*     */     }
/*     */ 
/* 365 */     List catList = new ArrayList();
/* 366 */     catList.add(map1);
/* 367 */     catList.add(map2);
/* 368 */     return catList;
/*     */   }
/*     */ 
/*     */   public List getCatOneLevellist() {
/* 372 */     return this.queryList.getList("getOneLevelCatId");
/*     */   }
/*     */   public List getCatTwoLevellist(String one_id) {
/* 375 */     return this.queryList.getList("getTwoLevelCatId", one_id);
/*     */   }
/*     */ 
/*     */   public List getCaseByCatIDList(Map map, int start, int limit) {
/* 379 */     if (start == 0)
/* 380 */       start = 0;
/*     */     else {
/* 382 */       start = (start - 1) * limit;
/*     */     }
/* 384 */     Ti_case ti_lawyerCase = new Ti_case();
/* 385 */     ti_lawyerCase.setCase_type(map.get("case_type").toString());
/* 386 */     ti_lawyerCase.setCat_attr(map.get("cat_attr").toString());
/* 387 */     if (map.get("case_state") != null)
/* 388 */       ti_lawyerCase.setCase_state(map.get("case_state").toString());
/* 389 */     ti_lawyerCase.setStart(Integer.valueOf(start));
/* 390 */     ti_lawyerCase.setLimit(Integer.valueOf(limit));
/* 391 */     List list = this.queryList.getList("getCaseByCatIDList", ti_lawyerCase);
/* 392 */     return list;
/*     */   }
/*     */ 
/*     */   public int getCaseByCatIDCount(Map map)
/*     */   {
/* 397 */     Ti_case ti_lawyerCase = new Ti_case();
/* 398 */     ti_lawyerCase.setCase_type(map.get("case_type").toString());
/* 399 */     ti_lawyerCase.setCat_attr(map.get("cat_attr").toString());
/* 400 */     if (map.get("case_state") != null)
/* 401 */       ti_lawyerCase.setCase_state(map.get("case_state").toString());
/* 402 */     List list = this.queryList.getList("getCaseByCatIDCount", ti_lawyerCase);
/* 403 */     return Integer.parseInt(((Hashtable)list.get(0)).get("count").toString());
/*     */   }
/*     */ 
/*     */   public List getCaseByAreaIDList(Map map, int start, int limit)
/*     */   {
/* 408 */     if (start == 0)
/* 409 */       start = 0;
/*     */     else {
/* 411 */       start = (start - 1) * limit;
/*     */     }
/* 413 */     Ti_case ti_lawyerCase = new Ti_case();
/* 414 */     ti_lawyerCase.setCase_type(map.get("case_type").toString());
/* 415 */     ti_lawyerCase.setArea_attr(map.get("area_attr").toString());
/* 416 */     if (map.get("case_state") != null) {
/* 417 */       ti_lawyerCase.setCase_state(map.get("case_state").toString());
/*     */     }
/* 419 */     ti_lawyerCase.setStart(Integer.valueOf(start));
/* 420 */     ti_lawyerCase.setLimit(Integer.valueOf(limit));
/* 421 */     List list = this.queryList.getList("getCaseByAreaIDList", ti_lawyerCase);
/* 422 */     return list;
/*     */   }
/*     */ 
/*     */   public int getCaseByAreaIDCount(Map map) {
/* 426 */     Ti_case ti_lawyerCase = new Ti_case();
/* 427 */     ti_lawyerCase.setCase_type(map.get("case_type").toString());
/* 428 */     ti_lawyerCase.setArea_attr(map.get("area_attr").toString());
/* 429 */     if (map.get("case_state") != null) {
/* 430 */       ti_lawyerCase.setCase_state(map.get("case_state").toString());
/*     */     }
/* 432 */     int counter = 0;
/* 433 */     List list = this.queryList.getList("getCaseByAreaIDCount", ti_lawyerCase);
/* 434 */     Hashtable newsMap = (Hashtable)list.get(0);
/* 435 */     counter = Integer.parseInt(newsMap.get("count").toString());
/* 436 */     return counter;
/*     */   }
/*     */ 
/*     */   public void updateContact_sum(String case_id) throws ApplicationException
/*     */   {
/* 441 */     DbmInterf dbmMgr = new IbatisDbmImpl();
/* 442 */     dbmMgr.updateSql("updateContact_sum", case_id);
/*     */   }
/*     */   public String getListSumByPk(String id) {
/* 445 */     List list = this.queryList.getList("getListSumByPk", id);
/* 446 */     Hashtable map = new Hashtable();
/* 447 */     if (list != null)
/* 448 */       map = (Hashtable)list.get(0);
/* 449 */     return map.get("contact_sum").toString();
/*     */   }
/*     */ 
/*     */   public List getlistByarea_id(Map map, int start, int limit) {
/* 453 */     if (start == 0)
/* 454 */       start = 0;
/*     */     else {
/* 456 */       start = (start - 1) * limit;
/*     */     }
/* 458 */     Ti_case ti_lawyerCase = new Ti_case();
/* 459 */     ti_lawyerCase.setArea_attr(map.get("area_attr").toString());
/* 460 */     if (map.get("case_state") != null)
/* 461 */       ti_lawyerCase.setCase_state(map.get("case_state").toString());
/* 462 */     ti_lawyerCase.setStart(Integer.valueOf(start));
/* 463 */     ti_lawyerCase.setLimit(Integer.valueOf(limit));
/* 464 */     return this.queryList.getList("getlistByarea_id", ti_lawyerCase);
/*     */   }
/*     */ 
/*     */   public int getlistByarea_idcount(Map map) {
/* 468 */     List list = this.queryList.getList("getlistByarea_idcount", map);
/* 469 */     Hashtable newsMap = (Hashtable)list.get(0);
/* 470 */     int counter = Integer.parseInt(newsMap.get("count").toString());
/* 471 */     return counter;
/*     */   }
/*     */ 
/*     */   public List getlistBytitle_id(Map map, int start, int limit) {
/* 475 */     if (start == 0)
/* 476 */       start = 0;
/*     */     else {
/* 478 */       start = (start - 1) * limit;
/*     */     }
/* 480 */     Ti_case ti_lawyerCase = new Ti_case();
/* 481 */     ti_lawyerCase.setCase_title(map.get("case_title").toString());
/* 482 */     if (map.get("case_state") != null)
/* 483 */       ti_lawyerCase.setCase_state(map.get("case_state").toString());
/* 484 */     ti_lawyerCase.setStart(Integer.valueOf(start));
/* 485 */     ti_lawyerCase.setLimit(Integer.valueOf(limit));
/* 486 */     return this.queryList.getList("getlistBytitle_id", ti_lawyerCase);
/*     */   }
/*     */ 
/*     */   public int getlistBytitle_idcount(Map map)
/*     */   {
/* 491 */     List list = this.queryList.getList("getlistBytitle_idcount", map);
/* 492 */     Hashtable newsMap = (Hashtable)list.get(0);
/* 493 */     int counter = Integer.parseInt(newsMap.get("count").toString());
/* 494 */     return counter;
/*     */   }
/*     */ 
/*     */   public List checkPhones(String phone) {
/* 498 */     List list = this.queryList.getList("getlistByPhone_idcount", phone);
/* 499 */     return list;
/*     */   }
/*     */ 
/*     */   public List getAllCaseByTimeDESC(Map map, int start, int limit) {
/* 503 */     Ti_case ti_lawyerCase = new Ti_case();
/* 504 */     String cust_class = map.get("cust_class").toString();
/* 505 */     if (cust_class.equals("8"))
/* 506 */       ti_lawyerCase.setMemberscurrency_id("D6441x8hMScE033");
/* 507 */     if (cust_class.equals("9"))
/* 508 */       ti_lawyerCase.setMemberscurrency_id("D6441x8hMScE033Q8743jG6c427847");
/* 509 */     if (start == 0)
/* 510 */       start = 0;
/*     */     else {
/* 512 */       start = (start - 1) * limit;
/*     */     }
/* 514 */     if (map.get("case_state") != null) {
/* 515 */       ti_lawyerCase.setCase_state(map.get("case_state").toString());
/*     */     }
/* 517 */     ti_lawyerCase.setStart(Integer.valueOf(start));
/* 518 */     ti_lawyerCase.setLimit(Integer.valueOf(limit));
/* 519 */     return this.queryList.getList("getAllCaseByTimeDESC", ti_lawyerCase);
/*     */   }
/*     */   public int getAllCaseByTimeDESCcount(Map map) {
/* 522 */     List list = null;
/* 523 */     String cust_class = map.get("cust_class").toString();
/* 524 */     Ti_case ti_lawyerCase = new Ti_case();
/* 525 */     if (cust_class.equals("8"))
/* 526 */       ti_lawyerCase.setMemberscurrency_id("D6441x8hMScE033");
/* 527 */     if (cust_class.equals("9"))
/* 528 */       ti_lawyerCase.setMemberscurrency_id("D6441x8hMScE033Q8743jG6c427847");
/* 529 */     if (map.get("case_state") != null) {
/* 530 */       ti_lawyerCase.setCase_state(map.get("case_state").toString());
/*     */     }
/* 532 */     list = this.queryList.getList("getAllCaseByTimeDESCcount", ti_lawyerCase);
/* 533 */     Hashtable newsMap = (Hashtable)list.get(0);
/* 534 */     int counter = Integer.parseInt(newsMap.get("count").toString());
/* 535 */     return counter;
/*     */   }
/*     */ 
/*     */   public List getAreaByAreaID(String area_id) {
/* 539 */     return this.queryList.getList("getAreaByAreaID", area_id);
/*     */   }
/*     */ 
/*     */   public int getAreaListByCaseCount(String area_id) {
/* 543 */     List list = this.queryList.getList("getAreaListByCaseCount", area_id);
/* 544 */     return Integer.parseInt(((Hashtable)list.get(0)).get("count").toString());
/*     */   }
/*     */ }

/* Location:           F:\电商\commons-utils.jar
 * Qualified Name:     com.lmpop.trade.ti_case.Ti_caseInfo
 * JD-Core Version:    0.6.0
 */